package com.gupao.jly521.pattern.factory;

import com.gupao.jly521.beanfactory.ExportBaseFactory;
import com.gupao.jly521.beanfactory.ExportData1Factory;
import com.gupao.jly521.entity.ExportDataBaseEntity;
import com.gupao.jly521.pattern.simple.SimpleFactory;

/**
 * @author Jly
 * @date 2018/8/17  14:28
 */
public class Factory {

    public static void main( String[] args )
    {
        //简单工厂实例：
        ExportBaseFactory factory = new ExportData1Factory();
        System.out.println(factory.getExportDataEntity().getCommonColumn());
    }
}
